package com.lv.enums;

public enum ResultEnum {
    Ok(1,"操作成功"),
    ER(0,"操作失败"),

    NO_LOGIN(100,"用户未登录"),
    YES_LOGIN(101,"登录成功"),
    NAME_NO(102,"没有该账号"),
    PWD_ER(103,"密码错误"),
    PWD_TWO_ER(104,"两次密码不同"),
    REGISTER_OK(111,"注册成功"),
    REGISTER_ER(110,"注册失败"),
    REGISTER_ALREADY(112,"该账户已经注册"),
    REGISTER_NULL(113,"登录名不可为空"),
    REGISTER_PWD_NULL(114,"登录名不可为空"),

    PROCESS_UP(10,"审核通过"),
    PROCESS_DOWN(11,"审核未通过"),
    PROCESS_TO(12,"已审核");




    private Integer dataCode;
    private String dataMessage;

    ResultEnum(Integer dataCode, String dataMessage) {
        this.dataCode = dataCode;
        this.dataMessage = dataMessage;
    }

    public Integer getDataCode() {
        return dataCode;
    }

    public void setDataCode(Integer dataCode) {
        this.dataCode = dataCode;
    }

    public String getDataMessage() {
        return dataMessage;
    }

    public void setDataMessage(String dataMessage) {
        this.dataMessage = dataMessage;
    }
}
